﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MvcWinesSample.DAL
{
    public interface IRepository<TDataEntity>
    {
        IQueryable<TDataEntity> FindAll();
        TDataEntity Get(int id);
        TDataEntity Save(TDataEntity entity);
        void Delete(TDataEntity entity);
        //bool DatasourceExists();
        //void DeleteDatasource();
        //void CreateDatasource();
    }
}